package com.pig4cloud.pigx.contract.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.pig4cloud.pigx.common.customize.utils.serializer.BigDecimalToPlainStringSerializer;
import com.pig4cloud.pigx.contract.annotation.SetScaleTokenCurrency;
import lombok.Data;

import java.math.BigDecimal;

/**
 */
@Data
public class ContractPositionStatisticsWebVO {

	/**
	 * 空方人数
	 */
	private Integer emptyCount;

	/**
	 * 多方人数
	 */
	private Integer moreCount;

	/**
	 * 空方持仓量(币本位)
	 */
	@SetScaleTokenCurrency
	@JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
	private BigDecimal emptyNum;

	/**
	 * 多方持仓量(币本位)
	 */
	@SetScaleTokenCurrency
	@JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
	private BigDecimal moreNum;

	/**
	 * 外币名称
	 */
	private String name;
}
